package com.oe.dao;

import com.oe.pojo.Resume;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ResumeDao extends JpaRepository<Resume,Long>,
        JpaSpecificationExecutor<Resume> {

    @Query("from Resume where id=?1 and name=?2")
    public List<Resume> findByJpql(Long id, String name);





}
